home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
docp_1_1.zip
/
ELIB.ZIP
/
FDATES.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-29
|
383b
|
21 lines
#include <io.h>
/*
* copy_file_dates()
*
* Input:
* src_handle - handle of source file
* dst_handle - handle of destination file
* Comments:
* copies the date and time from one file to another
*/
void copy_file_dates(int src_handle, int dst_handle)
{
struct ftime ftime_buf;
getftime(src_handle, &ftime_buf);
setftime(dst_handle, &ftime_buf);
}